<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> {$sitename} / <a href="{url('index/index')}">自定义单页</a></div>
<div class="m10">
<div class="table-head"><a href="{url('index/index')}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a><strong>广告位管理</strong></div>
<form id="form" action="{url('index/edit')}">
<input type="hidden" name="fid" value="{$fid}"/>   
<table class="table">
{if !$website_id}
    <tr><th>所属站点:</th><td>
<select class="select" name="website_id" datatype="*">
    <option value="">请选择所属站点</option>
{loop $website $vo}
    <option value="{$vo['id']}" {if $info['website_id'] == $vo['id']}selected="selected"{/if}>{$vo['name']} [ http://{$vo['url']} ]</option>
{/loop}
</select>
    </td></tr>
{/if}
  <tr><th>模型类型:</th><td>
      <input  datatype="*" class="radio" type="radio" value="TXT" name="types" {if $info['types'] == 'TXT'}checked ="checked"{/if} /> 文字 
      <input class="radio" type="radio" value="JPG" name="types" {if $info['types'] == 'JPG'}checked ="checked"{/if} /> 图片
      <input class="radio" type="radio" value="SWF" name="types" {if $info['types'] == 'SWF'}checked ="checked"{/if} /> SWF动画
      <input class="radio" type="radio" value="DIY" name="types" {if $info['types'] == 'DIY'}checked ="checked"{/if} /> 自己设计</td></tr> 
    <tr><th>广告名称:</th><td><input class="input w350" datatype="s" type="text" name="title" value="{$info['title']}" /></td></tr>
    <tr><th>宽*高:</th><td><input class="input w50" datatype="n" type="text" name="width" value="{$info['width']}" /> * <input class="input w50" datatype="n" type="text" name="height" value="{$info['height']}" /> <span>SWF动画和图片有效</span></td></tr> 
    <tr><th>投放开始时间:</th><td><input class="input w140 ui-date" datatype="date" type="text" name="starttime" value="{if $info['starttime']}{date('Y/m/d H:s',$info['starttime'])}{/if}" /></td></tr>
    <tr><th>投放结束时间:</th><td><input class="input w140 ui-date" datatype="date" type="text" name="endtime" value="{if $info['starttime']}{date('Y/m/d H:s',$info['endtime'])}{/if}" /></td></tr>
</table>
<div class="btn fn-tac">
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','form','date','dialog',function(){ 
    $('#form').forms();
})
</script>